-
Notifications
You must be signed in to change notification settings - Fork 7.8k
drivers: video: ov7670: update init regs #94354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Just had something strange occur. When I last test the 7670 was with arduinocore 3,1 with 4.2-rc. And it worked with just the change mention. Testing now with 3.2 and 4.2 (zephyr) I had to also change reset and power pins config, i.e.,
have you run into any issues like this - not sure want to include in this pr or make another. Any guidance would be helpful Found this issue when looking at how to combine the 7675 driver wthi the ov7670 driver. Thanks |
Hi @mjs513 not sure to fully see the difference you are highlighting, but I think I understand that you had to change the pwdn part from INACTIVE to ACTIVE and in the reset part you added a reset set to 0 at the end. Is that so ? If that is so, this seems to be a difference in polarity. Basically in your case, the powerdown bit has to be set to high at the end and the reset line has to be set to 0 at the end. Is that correct ? This code depends on the setting done within the device-tree for this module. Taking the dvp_20pin_ov7670 as an example and the file dvp_20pin_ov7670.overlay, the important configuration for this part is the two lines of gpio:
This indicates that the reset and pwdn gpio are both active high. This means that Since you are introducing a new sensor (and possibily a new shield ?) then you should be able to configure that directly via the device-tree gpio configuration. |
My apologies for not showing the diff:
and in the overlay I have
Right now I am working on the combined ov7670 and ov7675. In the process of rewriting the OV7670 piece to use the video_write_cci etc commands in video_common. It will be cleaner and consistent. Not sure how to do the diff on that one :) |
Thanks for sharing. However I cannot see the usual - / + lines in your diff. Maybe just sharing the git diff output should be ok. |
|
This is in place of PR #94183 which:
While testing the OV7670 on the Arduino Giga using the ArduinoCore zephyr IDE I found that if:
is not updated from
camera will start but no images will be shown.
I found this when looking at drivers: video: ov7670: Implement missing video API functions, controls and update init regs. it seems that only part of the PR was incorporated for the register changes requested?
Nice and clean - I hate git!